<template>
    <transition name="fade">
        <div class="img-view" @touchmove.prevent>
            <div class="img-layer">
                <p class="content">
                    <span class="title">活动链接:</span>
                    <span>{{activityLink}}</span>
                    <el-button type='info' class='confirm' @click='hiddenModal'>确定</el-button>
                </p>
            </div>
        </div>
    </transition>
</template>
<script>
    export default {
        props: ['activityLink'],
        methods: {
            hiddenModal() {
                this.$emit('clickit')
            }
        }
    }

</script>
<style scoped>
/*动画*/
.fade-enter-active,
.fade-leave-active {
     transition: opacity .5s
}
.fade-enter,
.fade-leave-active {
     opacity: 0
}
.img-view {
    position: relative;
    width: 100%;
    height: 100%;
}
.img-layer {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
}
.title{
    color: #569efe;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
    display: inline-block;
    width: 100%;
    margin-bottom: 5px;
    font-size: 18px;
}
.content{
    width:360px;
    height:200px;
    border: 1px solid #000;
    border-radius: 10px;
    background: #fff;
    color: #666;
    position: absolute;
    padding: 20px;
    left:50%;
    top: 50%;
    line-height: 1.1;
    box-shadow: 0 0 3px #ccc;
    word-wrap:break-word;
    margin-left: -200px;
    margin-top: -120px;
    z-index: 999;
}
.confirm{
    position: absolute;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
}
</style>